﻿using System.ComponentModel.DataAnnotations;

namespace Synthesize.BaseSet.ServiceInterface.Dtos.Authority.Role
{
    public class CreateRoleInput
    {
        public CreateRoleInput() {
            Remarks = string.Empty;
        }
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required(ErrorMessage = "角色名称不能为空！")]
        public string Name { get; set; }

        /// <summary>
        /// 角色别名
        /// </summary>
        [Required(ErrorMessage = "角色别名不能为空！")]
        public string Alias { get; set; }

        /// <summary>
        /// 角色状态 true启用 false禁用
        /// </summary>
        [Required(ErrorMessage = "角色状态不能为空！")]
        public bool Status { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Required(ErrorMessage = "排序不能为空！")]
        public decimal Sort { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

    }
}
